<%--
  Created by IntelliJ IDEA.
  User: 1
  Date: 2020/7/25
  Time: 17:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>用户数据的获取</title>
    <style>
        tr,td{
            border: 1px solid black;
        }
    </style>
</head>
<body>
    <table>
        <tr>
            <th>ID</th>
            <th>用户名</th>
            <th>密码</th>
            <th>操作</th>
            <c:forEach var="user" items="${list}">
                    </tr>
                        <td>${user.id}</td>
                        <td>${user.name}</td>
                        <td>${user.password}</td>
                        <td><a href="/delete?id=${user.id}">删除</a></td>
                     <tr>
            </c:forEach>
        </tr>
    </table>

    <h1>增加用户</h1>
    <form action="/add">
        <input type="text" placeholder="用户名" name="name">
        <input type="password" placeholder="密码" name="password">
        <input type="submit">
    </form>

    <h1>修改</h1>
    <form action="/update">
        <input type="text" placeholder="ID" name="name">
        <input type="text" placeholder="用户名" name="name">
        <input type="password" placeholder="密码" name="password">
        <input type="submit">
    </form>
</body>
</html>
